﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProDivingJudge2salmon14
{
    public delegate bool DelegateGetIsConnected();

    public delegate void DelegateSend(string text);
    public delegate void DelegateConnectToServer();

    public delegate string DelegateGetDiveCode();
    public delegate string DelegateGetJudgeName();
    public delegate int DelegateGetJudgeID();
    public delegate void DelegateSetJudgeName(string judgeName);
    public delegate string DelegateGetJudgeLayout();
    public delegate void DelegateSetEmptyDiveCode();
    public delegate bool DelegateGetIsReceivedNewData();
    public delegate void DelegateSetIsReceivedNewData(bool isReceivedNewData);
    public delegate string DelegateGetDiveOrder();

    public interface IFormMain
    {
        event DelegateGetIsConnected EventGetIsConnected;
        event DelegateSend EventSend;
        event DelegateConnectToServer EventConnectToServer;

        event DelegateGetDiveCode EventGetDiveCode;
        event DelegateGetJudgeName EventGetJudgeName;
        event DelegateGetJudgeID EventGetJudgeID;
        event DelegateSetJudgeName EventSetJudgeName;
        event DelegateGetJudgeLayout EventGetJudgeLayout;
        event DelegateSetEmptyDiveCode EventSetEmptyDiveCode;
        event DelegateGetIsReceivedNewData EventGetIsReceivedNewData;
        event DelegateSetIsReceivedNewData EventSetIsReceivedNewData;
        event DelegateGetDiveOrder EventGetDiveOrder;
    }
}
